import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import {
    Button,
    Tabbar,
    TabbarItem,
    Tab,
    Tabs,
    Search,
    Loading,
    Lazyload,
    Icon,
    Popover,
    Toast,
    GoodsAction,
    GoodsActionButton,
    GoodsActionIcon,
    Swipe,
    SwipeItem,
    Popup,
    Grid,
    GridItem,
    Form,
    Field,
    Stepper,
    Cell,
    CellGroup,
    Checkbox,
    CheckboxGroup,
    SubmitBar,
    Overlay
} from "vant";
import { Image as VanImage } from "vant";

Vue.use(VanImage);
Vue.use(Button);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Search);
Vue.use(Loading);
Vue.use(Lazyload);
Vue.use(Icon);
Vue.use(Popover);
Vue.use(Toast);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Popup);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Form);
Vue.use(Field);
Vue.use(Stepper);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(SubmitBar);
Vue.use(Overlay);
Vue.prototype.axios = axios;
Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");
